<?php
/**
 * Created by PhpStorm.
 * User: ibokan
 * Date: 2017/2/22
 * Time: 23:14
 */

namespace app\home\validate;


use think\Validate;

class News extends Validate
{
    protected $rule = [
        'title'    => 'require|max:50',
        'newsType' => 'require|max:50',
        'content'  => 'require',
    ];

    protected $message = [
        'title.require'     => '新闻标题必须填',
        'title.max'         => '新闻类型最多不能超过50个字符',
        'newsType.require'  => '新闻类型必须填',
        'newsType.max'      => '新闻类型最多不能超过50个字符',
        'content.require'   => '新闻内容必须填',
    ];

    protected $scene = [

    ];

}